﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IceDog.Practice.WebForm.Common
{
    public partial class SimpleForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (this.IsPostBack)
            {
                ResultLabel.Style.Add(HtmlTextWriterStyle.Color, "red");
            }
        }

        protected void SubmitButton_Click(object sender, EventArgs e)
        {
            ResultLabel.Text = InputTextBox.Text;
        }
        public SimpleFormInfo SimpleFormInfo
        {
            get => new SimpleFormInfo() { Msg = ResultLabel.Text };
        }
    }
}